﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VirginiaCode
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.label3.Text = System.DateTime.Now.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string plain = textBox1.Text;
            string key = textBox2.Text;
            var coder = new MySecurity();
            coder.Key = key.ToLower();
            coder.Plain = plain.ToLower();
            coder.Encryption();
            textBox3.Text = coder.Cypher;
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void s(object sender, EventArgs e)
        {

        }
    }
}
